package com.tony.easymvc.po;

import java.util.List;
import java.util.Map;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;

public class ProjectBiz {
    /**
     * 
     */
    private Integer                   id;

    private String                    bizName;

    private Integer                   projectId;

    private DbInfo                    master;

    private DbInfo                    slave;

    private List<ProjectTables>       projectTables = Lists.newArrayList();

    private Map<String, List<String>> textColumns   = Maps.newHashMap();

    
    Map<String, List<OrMapping>> mapping = Maps.newHashMap();
    /**
     * 
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    public String getBizName() {
        return bizName.toLowerCase();
    }

    public void setBizName(String bizName) {
        this.bizName = bizName == null ? null : bizName.trim();
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public List<ProjectTables> getProjectTables() {
        return projectTables;
    }

    public void setProjectTables(List<ProjectTables> projectTables) {
        this.projectTables = projectTables;
    }

    public DbInfo getMaster() {
        return master;
    }

    public void setMaster(DbInfo master) {
        this.master = master;
    }

    public DbInfo getSlave() {
        return slave;
    }

    public void setSlave(DbInfo slave) {
        this.slave = slave;
    }

    public Map<String, List<String>> getTextColumns() {
        return textColumns;
    }

    public void setTextColumns(Map<String, List<String>> textColumns) {
        this.textColumns = textColumns;
    }

	public Map<String, List<OrMapping>> getMapping() {
		return mapping;
	}

	public void setMapping(Map<String, List<OrMapping>> mapping) {
		this.mapping = mapping;
	}
    
}